import request from '@/utils/request'

export function getSensorDataList(params) {
  return request({
    url: '/sensorData/page',
    method: 'get',
    params,
  })
}

export function saveSensorData(data) {
  return request({
    url: '/sensorData/save',
    method: 'post',
    data,
  })
}

export function updateSensorData(data) {
  return request({
    url: '/sensorData/update',
    method: 'put',
    data,
  })
}

export function deleteSensorData(id) {
  return request({
    url: '/sensorData/del',
    method: 'get',
    params: { id },
  })
}

export function batchDeleteSensorData(ids) {
  return request({
    url: '/sensorData/batch',
    method: 'post',
    data: ids,
  })
}
